<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('配送详情列表')" />
</head>
<body class="gray-bg">
     <div class="container-div">
        <div class="row">
            <div class="col-sm-12 search-collapse">
                <form id="formId">
                    <input type="hidden" name="userSupplyId"  th:value="${id}"/>
                </form>
            </div>

            <div class="col-sm-12 select-table table-striped">
                <table id="bootstrap-table"></table>
            </div>
        </div>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var editFlag = [[${@permission.hasPermi('mall:orderDetail:edit')}]];
        var removeFlag = [[${@permission.hasPermi('mall:orderDetail:remove')}]];
        var comentDatas  = [[${@dict.getType('has_coment')}]];
        var prefix = ctx + "system/userSupplyCard/showlog";

        $(function() {
            var options = {
                url: prefix ,
                modalName: "订单详情",
                columns: [{
                    checkbox: true
                },
                {
                    field: 'id', 
                    title: 'ID',
                    visible: false
                },
                {
                    field: 'num',
                    title: '次数',
                    formatter: function(value, row, index) {
                        return "第"+value+"次";
                    }
                },
                    {
                        field: 'total',
                        title: '数量'
                    },
                    {
                        field: 'username',
                        title: '配送人'
                    },
                    {
                        field: 'mobile',
                        title: '电话'
                    },
                    {
                        field: 'created',
                        title: '时间'
                    }
                ]
            };
            $.table.init(options);
        });
    </script>
</body>
</html>